home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
confist.zip
/
CONFLIST.WAS
< prev
next >
Wrap
Text File
|
1993-02-11
|
5KB
|
173 lines
;**ConfList Pro*********************************************
;This script was writen to display the conferences availible
;on the Execitive Network while your online. Please read the
;Readme.txt file for setup information.
;***********************************************************
;***Globals*************
string send,select,choice,fond
integer status,general=0,vendor=0,busin=0,datacom=0,progra=0
integer enterta=0,gendiscu=0,private=0,special=0,basnet=0
integer midilink=0,altinter=0,miscintr=0,intnews=0,intrec=0
integer intrscin=0,intersoc=0,region=0,bbbnet=0,infonet=0,usemis=0
integer options,favorite
proc main
integer dlgstatus=0
;*The main dialog displays the different conference sections.***
dialogbox 32 15 263 222 2 "Conference Selection"
checkbox 6 33 73 9 "Gerenal Technical" general
checkbox 6 47 101 10 "Vendor/Product Supported" vendor
checkbox 6 60 103 11 "Business + Financial" busin
checkbox 6 76 84 10 "Data Communications" datacom
checkbox 6 90 94 10 "Programming Language" progra
checkbox 6 105 97 9 "Entertainment + Leisure" enterta
checkbox 6 119 92 11 "General Discussions" gendiscu
checkbox 6 135 83 10 "Private Conferences" private
checkbox 6 150 107 9 "Special (read-only,temp,ect.)" special
checkbox 6 164 116 10 "BasNet + SourseNet Technical" basnet
checkbox 6 178 106 10 "MidiLink Music Network" midilink
checkbox 133 31 103 10 "Altternate Topics (InterNet)" altinter
checkbox 133 47 121 10 "Miscellaneous Topics (InterNet)" miscintr
checkbox 133 62 61 9 "InterNet News" intnews
checkbox 133 76 115 10 "Recreational Topics (InterNet)" intrec
checkbox 133 90 120 10 "Science Related Topics (InterNet)" intrscin
checkbox 133 105 121 9 "Social Related Topics (InterNet)" intersoc
checkbox 133 119 47 10 "Regional" region
checkbox 133 134 93 9 "BioNet, BitNet + BizNet" bbbnet
checkbox 133 148 117 10 "Informational Topics (InterNet)" infonet
checkbox 133 162 97 10 "UseNet Miscellaneous" usemis
text 97 6 66 18 left "Select Conference, Then select OK"
pushbutton 58 199 40 14 "&OK" normal
pushbutton 161 199 40 14 "&CANCEL" cancel
checkbox 133 176 78 9 "Favorite Places" favorite
enddialog
while dlgstatus !=10
dlgstatus=$DIALOG
endwhile
;the below section, defines the choice varible.
if general
choice="d:\prowin\conf\general.txt"
endif
if vendor
choice="d:\prowin\conf\vendor.txt"
endif
if busin
choice="d:\prowin\conf\busin.txt"
endif
if datacom
choice="d:\prowin\conf\datacom.txt"
endif
if progra
choice="d:\prowin\conf\progra.txt"
endif
if enterta
choice="d:\prowin\conf\enterta.txt"
endif
if gendiscu
choice="d:\prowin\conf\gendiscu.txt"
endif
if private
choice="d:\prowin\conf\private.txt"
endif
if special
choice="d:\prowin\conf\special.txt"
endif
if basnet
choice="d:\prowin\conf\basnet.txt"
endif
if midilink
choice="d:\prowin\conf\midilink.txt"
endif
if altinter
choice="d:\prowin\conf\altinter.txt"
endif
if miscintr
choice="d:\prowin\conf\miscintr.txt"
endif
if intnews
choice="d:\prowin\conf\intnews.txt"
endif
if intrec
choice="d:\prowin\conf\intrec.txt"
endif
if intrscin
choice="d:\prowin\conf\intrscin.txt"
endif
if intersoc
choice="d:\prowin\conf\intersoc.txt"
endif
if region
choice="d:\prowin\conf\region.txt"
endif
if bbbnet
choice="d:\prowin\conf\bbbnet.txt"
endif
if infonet
choice="d:\prowin\conf\infonet.txt"
endif
if usemis
choice="d:\prowin\conf\usemis.txt"
endif
if favorite
choice="d:\prowin\conf\favorite.txt"
endif
destroydlg
call displa_list
endproc
;This dialog box uses the choice varible, and displays
;the conference list.
proc displa_list
dialogbox 48 26 256 194 2 "Conference List"
flistbox 13 16 211 129 choice single select
pushbutton 12 161 63 22 "&Join Now" normal
pushbutton 80 160 83 23 "Add to &Favorite Places" update
pushbutton 169 160 52 23 "&CANCEL" cancel
enddialog
status=$DIALOG
while status!=1
if nullstr select
status = $DIALOG
loopwhile
endif
if status==10
sendconf ()
exitwhile
elseif status == 30
addconf ()
endif
status=$DIALOG
endwhile
exit
endproc
proc sendconf
integer num
string selec
substr selec select 14 25 ;deletes the first 14 characters
atoi selec num ;converts string to integer and gets only
;the number from the string.
itoa num fond ;convert integer back to a string.
strfmt send "j %s ^M" fond
transmit send
halt
endproc
;****************************************************************
;this proc is used to add a conference to your Favorite Places.
;first it looks for the txt file, if it finds the file it writes
; the conference to the file. If its not found. It creates the
;file, and then writes the conference to the file. Then exits the
;script.
;****************************************************************
proc addconf
if isfile "d:\prowin\conf\favorite.txt"
fopen 0 "d:\prowin\conf\favorite.txt" write text
fseek 0 0 2
else
fopen 0 "d:\prowin\conf\favorite.txt" create text
endif
fputs 0 select
fclose 0
endproc